-- GENERATED SPELL FOR [Fleshbeast] --


function spell0_16595(pUnit, Event) --@Gaping Maw,n/a--
pUnit:FullCastSpellOnTarget(29935,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16595', 15600, 1)
end

function spell1_16595(pUnit, Event) --@Infectious Poison,n/a--
pUnit:FullCastSpellOnTarget(29939,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16595', 601, 1)
end

function Sorts_16595(pUnit, Event)
local choix_sorts_16595 = math.random(0, 1)
if choix_sorts_16595 == 0 then
pUnit:RegisterEvent('spell0_16595', 1, 1)
end
if choix_sorts_16595 == 1 then
pUnit:RegisterEvent('spell1_16595', 1, 1)
end
end

function mob16595_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16595', math.random(1500, 3000), 1)
end

function mob16595_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16595_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16595_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16595, 1, 'mob16595_Action')
RegisterUnitEvent(16595, 2, 'mob16595_Leave')
RegisterUnitEvent(16595, 3, 'mob16595_Kill')
RegisterUnitEvent(16595, 4, 'mob16595_Die')
